package com.huluobo.h3kotlindemo.category

import androidx.lifecycle.MutableLiveData
import com.huluobo.h3kotlindemo.base.BaseViewModel

/**
 *  Created by LC on 2023/11/7.
 */
class CategoryViewModel : BaseViewModel() {
    private val repo = CategoryRepo()

    val categoryListSuccess = MutableLiveData<CategoryBeanResult>()
    val categoryListFailed = MutableLiveData<String>()

    fun getCategoryList() {
        repo.getCategoryList(categoryListSuccess, categoryListFailed)
    }
}